package com.dgw.springbootexvalid.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @program: springboot-exception-valid
 * @description:
 * @author: Mr.Dai
 * @create: 2020-04-01 22:09
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@XmlRootElement
public class Dog {
    @XmlElement
    private Integer id;
    @XmlElement
    private String name;
    @XmlElement
    private Integer age;
    @XmlElement
    private String type;
}
